<?php

class BPDEV_Subscribe {

	var $user_id;
	
	function BPDEV_Subscribe( $user_id, $blog_id ) {

		global $bp;
	}

	function get_blog( $blog_id, $limit = false ) {

		$all = bpdev_subscribe_getmeta( $blog_id );

		if ( !$limit )
			return $all;

	}

	function get_user( $user_id, $limit = false ) {

		$all = bpdev_subscribe_getmeta( $user_id, false, false );

		if ( !$limit )
			return $all;

	}

	function subscribe( $user_id, $blog_id ) {

		bpdev_subscribe_addmeta( $user_id, $blog_id );

	}

	function unsubscribe( $user_id, $blog_id ) {

		bpdev_subscribe_deletemeta( $user_id, $blog_id );

	}

	function check( $user_id, $blog_id ) {

		if ( bpdev_subscribe_getmeta( $blog_id, $user_id ) )
			return true;
		else
			return false;

	}

}

?>